<div class="form-group{{ $errors->has($key) ? ' has-error' : '' }}">
    <label for="{{$key}}" class="control-label {{$classLabel or 'col-md-4'}}">{{$text}}</label>
    <div class="{{$classDiv or 'col-md-6'}}">
        <input id="{{$key}}" type="text" class="form-control {{$classInput or ''}}"
            name="{{$key}}"
            value="{{old($key)?: (isset($obj)? $obj->$key: '')}}"
            placeholder="{{$placeholder or ''}}"
            style="{{$style or ''}}"
            autofocus
            {{isset($required) && $required? 'required': ''}}
            {{isset($readonly) && $readonly? 'readonly': ''}}
        >
        @if ($errors->has($key))
            <span class="help-block">
                <strong>{{ $errors->first($key) }}</strong>
            </span>
        @endif
    </div>
</div>
